import React from 'react';

import Close from './Close';
import Open from './Open';

import StyledDrawFormItemTitle from './style'

export default function DrawFormItemTitle({ title, status,drawFormItemClick }) {
  return (
    <StyledDrawFormItemTitle onClick={drawFormItemClick}>
      {status ? <Close /> : <Open />}
      <span style={{ marginLeft: 8 }}>{title}</span>
    </StyledDrawFormItemTitle>
  );
}
